/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package saludfamiliar;

import hibernate.HibernateUtil;
import java.awt.Color;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;
import javax.swing.border.LineBorder;

/**
 *
 * @author Raul
 */
public class SaludFamiliar {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        try {
                UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());  
        } 
        catch (ClassNotFoundException e) {
                System.err.println("Couldn't find class for specified look and feel:System");
                System.err.println("Did you include the L&F library in the class path?");
                System.err.println("Using the default look and feel.");
        } 
        catch (UnsupportedLookAndFeelException e) {
                System.err.println("Can't use the specified look and feel (System) on this platform.");
                System.err.println("Using the default look and feel.");
        } 
        catch (Exception e) {
                System.err.println("Couldn't get specified look and feel (System), for some reason.");
                System.err.println("Using the default look and feel.");
                e.printStackTrace();
        }
        LineBorder lb = new LineBorder(new Color(184, 207, 229));
        UIManager.put("TitledBorder.border", lb);
        UIManager.put("ComboBox.disabledForeground", Color.BLACK); //No funciona para GTK
        HibernateUtil.inicializar();
        GestorPantallaPrincipal gPP= new GestorPantallaPrincipal();
        gPP.abrirFormulario();
    }
}
